﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Esb.ManageUI.Controllers
{
    public class BaseController : Controller
    {
        /// <summary>
        /// 执行前拦截器
        /// </summary>
        /// <param name="filterContext"></param>
        protected override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            //检查是否登录
            if (Session["UserName"] == null)
            {
                filterContext.Result = new RedirectResult("~/Login");
            }
        }
    }
}
